package nasp.labos.prvi.avltree;

import java.awt.Point;

/**
 * Klasa koja reprezentira čvor u stablu
 * @author Stjepan Hadjić
 *
 */
public class Node {
	public Integer element;
	public int balanceFactor;
	public int depth;
	public Point point;
	public Node left;
	public Node right;
	public Node parent;
	
	public Node(Integer element) {
		this.element = element;
		balanceFactor = 0;
		depth = 0;
		point = new Point(300,50);
		left = null;
		right = null;
		parent = null;
	}
	@Override
	public String toString() {
		return element+" ";
	}
	
}